<?php

namespace App\Modules\User\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * Class ApplyPartner
 * @package App\Modules\User\Models
 * @property int $user_id
 * @property int $partner_id
 * @property string $name
 * @property string $id_number
 * @property string $address
 * @property string $company
 * @property string $job
 * @property string $image
 * @property string $id_card_positive
 * @property string $id_card_back
 * @property string $reason
 */
class ApplyPartner extends Model
{
    const STATUS_INIT = "init";
    const STATUS_PASS = "pass";
    const STATUS_FAIL = "fail";

    public static $statusShow = [
        self::STATUS_INIT => "申请中",
        self::STATUS_PASS => "通过申请",
        self::STATUS_FAIL => "拒绝申请",
    ];
    protected $fillable = [
        'user_id',
        'partner_id',
        'name',
        'id_number',
        'address',
        'company',
        'job',
        'image',
        'id_card_positive',
        'id_card_back',
        'personal_id',
        'status',
        'reason',
    ];
}
